package com.local.springcloud.mapper;

import com.local.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lou ke
 * @version 1.0
 * @since 2020/07/28 17:39
 */
@Repository
public interface DeptMapper {

    Boolean addDept(@Param("dept") Dept dept);

    Dept selectById(@Param("deptId") Long deptId);

    List<Dept> selectAll();
}
